import request from '@/utils/request'

export function updateUserLevelActivity(data) {
  return request({
    url: '/ops/userLevelSetting/updateUserLevelActivity',
    method: 'post',
    data
  })
}

export function addUserLevelActivity(data) {
  return request({
    url: '/ops/userLevelSetting/addUserLevelActivity',
    method: 'post',
    data
  })
}

export function addOrUpdateUserLevelSetting(data) {
  return request({
    url: '/ops/userLevelSetting/addOrUpdateUserLevelSetting',
    method: 'post',
    data
  })
}

export function getUserLevelSetting(tenantId) {
  return request({
    url: '/ops/userLevelSetting/getUserLevelSetting',
    method: 'get',
    params: {tenantId: tenantId}
  })
}

export function getUserLevelActivityList(tenantId) {
  return request({
    url: '/ops/userLevelSetting/getUserLevelActivityList',
    method: 'get',
    params: {tenantId: tenantId}
  })
}

export function getUserLevelNotInActivity(userLevelIds) {
  return request({
    url: '/ops/userLevelSetting/getUserLevelNotInActivity',
    method: 'get',
    params: {userLevelIds: userLevelIds}
  })
}

export function delUserLevel(id) {
  return request({
    url: '/ops/userLevelSetting/delUserLevel',
    method: 'get',
    params: {id: id}
  })
}
